home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / Arkanoid Flash.swf / scripts / frame_62 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  791 b   |  48 lines

  1. i = "1";
  2. while("50" >= i)
  3. {
  4.    removeMovieClip("expand" add i);
  5.    removeMovieClip("catch" add i);
  6.    removeMovieClip("slow" add i);
  7.    i += "1";
  8. }
  9. if(level_is == "1")
  10. {
  11.    tellTarget("/soundFX")
  12.    {
  13.       gotoAndStop("next_level");
  14.       play();
  15.    }
  16.    call("reset_variables");
  17.    call("setup_level2");
  18. }
  19. else if(level_is == "2")
  20. {
  21.    tellTarget("/soundFX")
  22.    {
  23.       gotoAndStop("next_level");
  24.       play();
  25.    }
  26.    call("reset_variables");
  27.    call("setup_level3");
  28. }
  29. else if(level_is == "3")
  30. {
  31.    tellTarget("/soundFX")
  32.    {
  33.       gotoAndStop("next_level");
  34.       play();
  35.    }
  36.    call("reset_variables");
  37.    call("setup_level4");
  38. }
  39. else
  40. {
  41.    tellTarget("/soundFX")
  42.    {
  43.       gotoAndStop("win");
  44.       play();
  45.    }
  46.    gotoAndPlay(100);
  47. }
  48.